package com.sgb.kjwl.view.ui.activity.self;

import android.content.Context;
import android.content.Intent;
import android.view.View;

import androidx.databinding.DataBindingUtil;

import com.sgb.kjwl.AppActivity;
import com.sgb.kjwl.R;
import com.sgb.kjwl.databinding.ActivityDevelopingBinding;

/**
 * 我的账户
 */
public class DevelopingActivity extends AppActivity {

    private ActivityDevelopingBinding binding;

    public static void start(Context context, String title) {
        Intent intent = new Intent(context, DevelopingActivity.class);
        intent.putExtra("title", title);
        context.startActivity(intent);
    }

    @Override
    protected void initView() {
        binding = DataBindingUtil.setContentView(DevelopingActivity.this, R.layout.activity_developing);
        binding.include.titleView.setText(getIntent().getStringExtra("title"));
        binding.include.ivBack.setOnClickListener(this);
        binding.returnIcon.setOnClickListener(this);
    }


    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.iv_back:
            case R.id.return_icon:
                finish();
                break;
        }
    }


}
